#include "stdafx.h"
#include "CProjects.h"
#include "CScripts.h"

CProject	*	g_pProject;
CProject		Projects[10];

bool CProject::Merge()
{
	if(GetType() != PROJECT_MAIN) return false;
	bool b = false;
	for(auto pLink = Begin(); pLink != Bad(); ++pLink)
	{
		if(pLink->IsUsed() && pLink->IsMergedWith())
		{
			pLink->Merge();
			b = true;
		}
	}
	return b;
}